/**
 * 
 */
package atomicRegister;

import java.io.Serializable;

import se.sics.kompics.Event;

/**
 * @author federico
 *
 */
public class WriteRequest extends Event implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5847971098714935212L;
	private final int r;
	private final int val;
	
	/**
	 * @param r
	 * @param val
	 */
	public WriteRequest(int r, int val) {
		super();
		this.r = r;
		this.val = val;
	}

	/**
	 * @return the register number
	 */
	public int getR() {
		return r;
	}

	/**
	 * @return the value to be written to r
	 */
	public int getVal() {
		return val;
	}
}
